/**
 * Created by yuming619 on 2016/9/5.
 */
angular.module('directive', [])
    .directive('repeatFinish', [function () {
        return {
            link: function (scope, element, attr) {
                if (scope.$last == true) {
                    scope.$eval(attr.repeatFinish)
                }
            }
        }
    }]);